package com.mySampleApplication.client.dmp;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.mySampleApplication.client.CodeRuleAtter.CodeRuleAtterDto;

import java.util.Map;

@RemoteServiceRelativePath("DmpService")
public interface DmpService extends RemoteService {

    DmpDto getSelectMod(Map<String, String> map, String object);

    DmpDto getSelectByObjectId(Map<String, String> map, String mapTable);
    String getObjectName(String id);
    DmpDto selectObjectList();
    DmpDto selectObjectListBy(Map<String, String> map);
    DmpDto getDataElementCategoryList();

    public static class App {
        private static DmpServiceAsync ourInstance = GWT.create(DmpService.class);

        public static synchronized DmpServiceAsync getInstance() {
            return ourInstance;
        }
    }
}
